package lab01;

public class Test13 {
    public static void main(String[] args) {
        int i=1;

        for(i=1;i<=1000;i++){
            int a=i/100;
            int b=(i-a)*100/10;
            int c=(i-a)*100-(b*10);
            if(i==a*a*a+b*b*b+c*c*c){
                System.out.println(i);
            }
        }
    }
}
